import request from '@/utils/request'

export const productColorList = function(params){
  return request({
    url: '/product_color/list',
    method: 'get',
    params: params,
  })
}

export const productColorAdd = function(params){
  return request({
    url: '/product_color/add',
    method: 'post',
    data: params,
  })
}


export const productColorEditGet = function(params){
  return request({
    url: '/product_color/edit',
    method: 'get',
    params: params,
  })
}

export const productColorEditPost = function(params){
  return request({
    url: '/product_color/edit',
    method: 'post',
    data: params,
  })
}

export const productColorDel = function(params){
  return request({
    url: '/product_color/del',
    method: 'post',
    data: params,
  })
}

export const colorNameSelectList = function(params){
  return request({
    url: '/product_color/color_name',
    method: 'get',
    params: params,
  })
}


export const colorNameList = function(params){
  return request({
    url: '/product_color/get_color_name',
    method: 'get',
    params: params,
  })
}